//
//  WCBreakpoint.m
//  WabbitCode
//
//  Created by William Towe on 2/16/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCBreakpoint.h"


#define kWCBEnabledKey @"enabled"

@implementation WCBreakpoint
- (id)initWithCoder:(NSCoder *)coder {
	if (!(self = [super init]))
		return nil;
	
	_enabled = [coder decodeBoolForKey:kWCBEnabledKey];
	
	return self;
}

- (void)encodeWithCoder:(NSCoder *)coder {
	[coder encodeBool:_enabled forKey:kWCBEnabledKey];
}

@synthesize enabled=_enabled;

+ (WCBreakpoint *)breakpointEnabled; {
	return [[[[self class] alloc] init] autorelease];
}

- (id)init; {
	if (!(self = [super init]))
		return nil;
	
	_enabled = YES;
	
	return self;
}
@end
